﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="3-10.aspx.cs" Inherits="实验三._3_10" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        </div>
         用户名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="RequiredFieldValidator">用户名不能为空</asp:RequiredFieldValidator>
        <p>
            姓名：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TextBox2" ErrorMessage="请输入2~4个汉字" ValidationExpression="[\u4E00-\u9FA5]{2,4}"></asp:RegularExpressionValidator>
        </p>
        <p>
            国籍：<asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem>选择国籍</asp:ListItem>
            <asp:ListItem>中国</asp:ListItem>
            <asp:ListItem>俄罗斯</asp:ListItem>
            <asp:ListItem>法国</asp:ListItem>
            <asp:ListItem>德国</asp:ListItem>
            <asp:ListItem>韩国</asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DropDownList1" ErrorMessage="RequiredFieldValidator" InitialValue="选择国籍"  >请选国籍</asp:RequiredFieldValidator>
        </p>
        密码：<asp:TextBox ID="TextBox3" runat="server" style="margin-left: 60px" TextMode="Password"></asp:TextBox>
        <p>
            确认密码：<asp:TextBox ID="TextBox4" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="TextBox6" ErrorMessage="生日输入不正确！" MaximumValue="2060-1-1" MinimumValue="1960-1-1" Type="Date"></asp:RangeValidator>
        </p>
        年龄:<asp:TextBox ID="TextBox5" runat="server" style="width: 188px; margin-left: 70px"></asp:TextBox>
         <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TextBox5" ErrorMessage="年龄必须在16-60之间" MaximumValue="60" MinimumValue="16" Type="Integer"></asp:RangeValidator>
        <p>
           出生日期： <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
              <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox6" ErrorMessage="生日输入不正确！" MaximumValue="2060-1-1" MinimumValue="1960-1-1" Type="Date"></asp:RangeValidator>
        </p>
        身份证号：<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox7" ErrorMessage=" 身份证号格式不对" ValidationExpression="\d{17}[\d|X]|\d{15}"></asp:RegularExpressionValidator>
        个人简介：<asp:TextBox ID="TextBox8" runat="server" Height="113px" Width="233px"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBox8" ErrorMessage="不少于10个字" ValidationExpression="[\u4E00-\u9FA5]{10,150}"></asp:RegularExpressionValidator>
        
        <asp:Button ID="Button1" runat="server" Text="提交" />
        <asp:Button ID="Button2" runat="server" Text="取消" />
    </form>
</body>
</html>
